package com.qfedu.edu.exception.notify.observer.impl;

import com.qfedu.edu.constance.Constance;
import com.qfedu.edu.exception.notify.observer.base.Observer;
import com.qfedu.edu.manager.SmsManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author xiaobobo
 * @title: SmsObserver
 * @projectName cd-fy-2401-third-project-parent
 * @description: TODO
 * @date 2024/9/23  14:26
 */
@Component
@Slf4j
public class SmsObserver implements Observer {

    @Resource
    private SmsManager smsManager;

    @Override
    public void notifyMessage(String msg) {
     log.info("短信通知.....");
        smsManager.sendSms(Constance.getOperatorTelPhone(),"");
    }
}
